package com.itkjb.leisurely.resource.sys.model.vo;

import com.itkjb.leisurely.core.base.BaseModel;
import com.itkjb.leisurely.core.interfaces.TreeInterfase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * Copyright (C), 2018-2020
 *
 * @Author: lix
 * @Date: 2020-08-17 10:48
 * @Description: 组织分组 vo
 * @Version: V1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="字典分组树-模型", description="字典分组数")
public class SysDictGroupVO  extends BaseModel implements TreeInterfase<SysDictGroupVO> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;


    /**
     * 分组名称
     */
    @ApiModelProperty(value = "分组名称")
    private String name;


    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private String parentId;

    /**
     * 排序，也可当级别用
     */
    @ApiModelProperty(value = "排序，也可当级别用")
    private Integer paixu;

    /**
     * 子集
     */
    @ApiModelProperty(value = "子集")
    private List<SysDictGroupVO> children = new ArrayList<>();
}
